let t = null
function debounce(cd, time) {
    
    return () => {
        if (t != null) {
            clearInterval(t)
        }
        t = setTimeout(() => {
            cd()
        }, time)

    }
}




